package com.southwind.springboottest.dao;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.southwind.springboottest.entity.Book;
import org.apache.ibatis.annotations.Mapper;
//import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
//import java.util.List;

@Mapper
@Repository
 //如果不加这个注解，则默认将实体类全改为小写字母，然后到数据库中去寻找相应的表

public interface BookDao extends BaseMapper<Book> {
//    @Select("select * from book where id=#{1}")
//     Book getbyid(Integer id);
//
//
//    @Select("select * from book")
//    List<Book> getall();


}
